export function compressText (text, length = 6) {
  if (!text) return undefined
  if (text.length <= length) return text
  return text.substr(0, length) + '...'
}

export function compressDate (dateText) {
  if (!dateText) return undefined
  if (dateText.length < 19) return dateText
  return dateText.substr(5, 11)
}
